package com.hrt.web.addressBook.service;

import java.util.List;

import com.hrt.bean.AddressBook;

public interface AddressBookService {
	public void saveAddressBook(AddressBook addressBook);
	public void updateAddressBook(AddressBook addressBook);
	public void deleteAddressBook(Long id);
	/**
	 * 根据addressId查找实体
	 * @param addressId
	 * @return
	 */
	public AddressBook getAddById(Long addressId);
	/**
	 * 根据memberId返回addressbook集合
	 * @param memberId
	 * @return
	 */
	public List<AddressBook> getAddListById(Long memberId);
	
	/**
	 * 查找默认地址
	 */
	public AddressBook getDefaultAddress(Long memberId,Integer isdefault);
}
